﻿#pragma once
#include "zyWindow.h"

namespace DarkMoonUI {

	class zyCtrol : public  zyWindow
	{
	public:
		zyCtrol();
		~zyCtrol();
		static void  WINAPI zyCtrol_Destroy(zyObject* obj);
		static LRESULT WINAPI zyCtrol_WndProc(zyObject* obj, HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL* bHandled);
		static LRESULT WINAPI zyCtrol_ChildWndProc(zyObject* obj, HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL* bHandled);
		static LRESULT WINAPI _MDI客户区窗口过程(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
		void OnNCDestroy();

		BOOL _CreateMDIClient(HWND parent, const std::wstring& windowName, POINT pos, POINT size, int id, int style, int exStyle, const std::wstring& className);
		BOOL _CreateCtrol(HWND parent, const std::wstring& windowName, POINT pos, POINT size, int id, int style, int exStyle, const std::wstring& className);
		BOOL _CreateWindow(HWND parent, const std::wstring& windowName, POINT pos, POINT size, int id, int style, int exStyle, const std::wstring& className);
		BOOL 绑定(HWND 参数_父窗口, int 参数_资源ID, BOOL 参数_使用默认字体);
		BOOL GetID();
	};

}

